package com.woniuxy.notice.controller;

import com.woniuxy.notice.pojo.NoticeType;
import com.woniuxy.notice.service.NoticeTypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import java.util.List;

@RestController
@RequestMapping("/noticeType")
public class NoticeTypeController {
    @Autowired
    private NoticeTypeService noticeTypeService;

    @GetMapping("/all")
    public List<NoticeType> getAllTypes() {
        return noticeTypeService.list();
    }
} 